package com.yc.testupload.model;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 用户实体类
 * 对应数据库中的用户表
 */
public class User {
    private int userId; // 用户ID
    private String userName; // 用户名
    private String userEmail; // 用户邮箱
    private String userPass; // 用户密码
    private String userSalt; // 密码盐值
    private String weixinOpenId; // 微信openid
    private BigDecimal userMoney; // 用户余额
    private String userAvatar; // 用户头像
    private Date userRegTime; // 注册时间
    private BigDecimal userVipWenIncome; // VIP文档收入
    private BigDecimal userPayWenIncome; // 付费文档收入
    private int vipLevelId; // VIP等级ID
    private Date vipEndTime; // VIP结束时间
    private BigDecimal vipDownFee; // VIP下载费用
    private int wenStatus; // 文档状态
    private String lineuid; // 线路ID
    private int inviteUserid; // 邀请人用户ID

    // 无参构造方法
    public User() {
    }

    // 有参构造方法（常用字段）
    public User(String userName, String userEmail, String userPass, String userSalt) {
        this.userName = userName;
        this.userEmail = userEmail;
        this.userPass = userPass;
        this.userSalt = userSalt;
    }

    // Getters and Setters
    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getUserEmail() {
        return userEmail;
    }

    public void setUserEmail(String userEmail) {
        this.userEmail = userEmail;
    }

    public String getUserPass() {
        return userPass;
    }

    public void setUserPass(String userPass) {
        this.userPass = userPass;
    }

    public String getUserSalt() {
        return userSalt;
    }

    public void setUserSalt(String userSalt) {
        this.userSalt = userSalt;
    }

    public String getWeixinOpenId() {
        return weixinOpenId;
    }

    public void setWeixinOpenId(String weixinOpenId) {
        this.weixinOpenId = weixinOpenId;
    }

    public BigDecimal getUserMoney() {
        return userMoney;
    }

    public void setUserMoney(BigDecimal userMoney) {
        this.userMoney = userMoney;
    }

    public String getUserAvatar() {
        return userAvatar;
    }

    public void setUserAvatar(String userAvatar) {
        this.userAvatar = userAvatar;
    }

    public Date getUserRegTime() {
        return userRegTime;
    }

    public void setUserRegTime(Date userRegTime) {
        this.userRegTime = userRegTime;
    }

    public BigDecimal getUserVipWenIncome() {
        return userVipWenIncome;
    }

    public void setUserVipWenIncome(BigDecimal userVipWenIncome) {
        this.userVipWenIncome = userVipWenIncome;
    }

    public BigDecimal getUserPayWenIncome() {
        return userPayWenIncome;
    }

    public void setUserPayWenIncome(BigDecimal userPayWenIncome) {
        this.userPayWenIncome = userPayWenIncome;
    }

    public int getVipLevelId() {
        return vipLevelId;
    }

    public void setVipLevelId(int vipLevelId) {
        this.vipLevelId = vipLevelId;
    }

    public Date getVipEndTime() {
        return vipEndTime;
    }

    public void setVipEndTime(Date vipEndTime) {
        this.vipEndTime = vipEndTime;
    }

    public BigDecimal getVipDownFee() {
        return vipDownFee;
    }

    public void setVipDownFee(BigDecimal vipDownFee) {
        this.vipDownFee = vipDownFee;
    }

    public int getWenStatus() {
        return wenStatus;
    }

    public void setWenStatus(int wenStatus) {
        this.wenStatus = wenStatus;
    }

    public String getLineuid() {
        return lineuid;
    }

    public void setLineuid(String lineuid) {
        this.lineuid = lineuid;
    }

    public int getInviteUserid() {
        return inviteUserid;
    }

    public void setInviteUserid(int inviteUserid) {
        this.inviteUserid = inviteUserid;
    }

    @Override
    public String toString() {
        return "User{" +
                "userId=" + userId +
                ", userName='" + userName + '\'' +
                ", userEmail='" + userEmail + '\'' +
                ", userPass='" + userPass + '\'' +
                ", userSalt='" + userSalt + '\'' +
                ", weixinOpenId='" + weixinOpenId + '\'' +
                ", userMoney=" + userMoney +
                ", userAvatar='" + userAvatar + '\'' +
                ", userRegTime=" + userRegTime +
                ", userVipWenIncome=" + userVipWenIncome +
                ", userPayWenIncome=" + userPayWenIncome +
                ", vipLevelId=" + vipLevelId +
                ", vipEndTime=" + vipEndTime +
                ", vipDownFee=" + vipDownFee +
                ", wenStatus=" + wenStatus +
                ", lineuid='" + lineuid + '\'' +
                ", inviteUserid=" + inviteUserid +
                '}';
    }
}